﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ASP.ADO._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="StyleSheet1.css" rel="stylesheet" type="text/css" />
    </head>
<body style="height: 435px">
    <form id="form1" runat="server">
    <div style="text-align: center; background-color: #C0C0C0; height: 260px;" 
        align="left">
    
        <asp:Label ID="Label1" runat="server" CssClass="HeadingDaiLy" 
            Text="BẢNG DANH SÁCH ĐẠI LÝ"></asp:Label>
        <br />
        <br />
        <br />
        <asp:GridView ID="gvDaiLy" runat="server" BorderStyle="Inset" CellPadding="4" 
            EnableModelValidation="True" ForeColor="#333333" Width="654px" 
            AllowSorting="True" AutoGenerateColumns="False" HorizontalAlign="Center" 
            Height="177px" onsorting="gvDaiLy_Sorting" PageSize="6">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="MaHoSoDaiLy" HeaderText="Mã Hồ Sơ Đại Lý" 
                    SortExpression="MaHoSoDaiLy" />
                <asp:BoundField DataField="TenDaiLy" HeaderText="Tên Đại Lý" 
                    SortExpression="TenDaiLy" />
                <asp:BoundField DataField="DienThoai" HeaderText="Điện Thoại" 
                    SortExpression="DienThoai" />
                <asp:BoundField DataField="DiaChi" HeaderText="Địa Chỉ" 
                    SortExpression="DiaChi" />
                <asp:BoundField DataField="MaQuan" HeaderText="Mã Quận" 
                    SortExpression="MaQuan" />
                <asp:BoundField DataField="NgayTiepNhan" HeaderText="Ngày Tiếp Nhận" 
                    SortExpression="NgayTiepNhan" />
                <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                <asp:BoundField DataField="TienNo" HeaderText="Tiền Nợ" 
                    SortExpression="TienNo" />
                <asp:HyperLinkField AccessibleHeaderText="Edit" 
                    DataNavigateUrlFields="MaHoSoDaiLy" 
                    DataNavigateUrlFormatString="~/EditDaiLy.aspx?madaily={0}" Text="Edit" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
    
        <br />
        <div style="text-align: left">
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/InsertDaiLy.aspx">Thêm Đại Lý</asp:HyperLink>
        </div>
    
        <br />
        <div style="height: 146px">
            <img class="Image" src="Capture.PNG" /></div>
    
    </div>
    </form>
</body>
</html>
